var webPath = "";
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
});

function del(themeId){
	if(themeId == ""){
		alert("请选择删除的模板！")
		return false;
	}
	var question = confirm("确定删除吗？");
	if(question){
		document.form1.action = webPath + "/admin/theme!del.action?themeId="+themeId;
		document.form1.submit();
	}
}

function use(themeId){
	if(themeId == ""){
		alert("请选择要使用的模板！")
		return false;
	}
	var question = confirm("确定使用该模板吗？");
	if(question){
		document.form1.action = webPath + "/admin/theme!use.action?themeId="+themeId;
		document.form1.submit();
	}
}